<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box{
            color:red;
            font-size: 40px;
        }
        .box1{
            color:green;
            font-size: 40px;
        }
        p{
            color: blue;
            font-size: 40px;
        }
        [name="shuxing"]{
            color:coral;
        }
        a:link{
        color:red;
        }
        a:visited{
        color:blue;
        }
         a:hover{
        color:yellow;
        }
         a:active{
        color:green;
     }

    </style>
</head>
<body>
    <div id="box">id文本</div>
    <div class="box1">类文本文本</div>
    <p>段落</p>
    <a href="#">伪类选择器</a>
</html>